<template>
  <div>
    <div class="box">
      <h3>请选择你喜欢的专栏</h3>

      <span v-for="item in list" :key="item">
        <input type="checkbox" v-model="renderData" :value="item" />
        <span>{{ item }}</span>
      </span>

      <div>
        <ul>
          <li v-for="item in renderData" :key="item">{{ item }}</li>
        </ul>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  name: 'App',
  data () {
    return {
      list: ['科幻', '喜剧', '动漫', '冒险', '科技', '军事', '娱乐', '奇闻'],
      renderData: []
    }
  }
}
</script>

<style scoped></style>
